import scrapy


class BaiduSpider(scrapy.Spider):
    name = "baidu"
    allowed_domains = ["http://www.baidu.com"]
    start_urls = ["http://www.baidu.com/"]

    def parse(self, response):
        print('开始.............')
        # 响应字符串
        print(response.text)
        print('结束...........')
